package com.mew.slots.core.game.zzdzz;

import com.mew.common.rest.bo.GameSession;
import com.mew.common.vo.UserSessionVO;
import com.mew.slots.core.common.handler.AbstractBetHandler;
import com.mew.slots.core.common.handler.SlotsHandler;
import com.mew.slots.core.common.messge.response.SlotsBonusPlayResponseMessage;
import com.mew.slots.core.common.messge.response.SlotsPlayResponseMessage;
import com.mew.slots.core.common.utils.SlotsGameUtil;
import com.mew.slots.core.common.vo.StrategyGameVO;
import com.mew.slots.core.game.zzdzz.message.ZzdzzBonusPlayResponseMessage;
import com.mew.slots.core.game.zzdzz.message.ZzdzzPlayResponseMessage;
import com.mew.slots.core.game.zzdzz.roller.ZzdzzXml;
import com.mew.slots.core.game.zzdzz.service.ZzdzzBonusService;
import com.mew.slots.core.game.zzdzz.service.ZzdzzService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author King.Song
 * @Date 2020/11/9 0009
 **/
@Service
@SlotsHandler(value = "ZZDZZ")
@Slf4j
public class ZzdzzHandler extends AbstractBetHandler {

    private ZzdzzService service=new ZzdzzService();
    private ZzdzzBonusService bonusService=new ZzdzzBonusService();

    @Override
    public void specialCheck(StrategyGameVO gameVO, GameSession userVO) {
    }

    @Override
    public SlotsPlayResponseMessage play(StrategyGameVO gameVO, GameSession userVO) {

        return service.Ready(gameVO);
    }

    @Override
    public SlotsBonusPlayResponseMessage playBonus(StrategyGameVO gameVO, GameSession userVO) {
        return bonusService.play(gameVO);
    }

    @Override
    public void readRoller() throws Exception {
        ZzdzzXml.getInstance().init();
    }
}
